package com.jiacl.service.impl;

import com.jiacl.entity.JiaclEthnicity;
import com.jiacl.entity.core.Result;
import com.jiacl.mapper.JiaclEthnicityMapper;
import com.jiacl.service.EthnicityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by XiaoWei on 2017/10/19.
 */
@Service
public class EthnicityServiceImpl implements EthnicityService{

    @Resource
    JiaclEthnicityMapper jiaclEthnicityMapper;
    @Override
    public Result selectJiaclEthnicity(Integer id) {
        JiaclEthnicity ethnicity = jiaclEthnicityMapper.selectByPrimaryKey(id);
        return new Result(ethnicity);
    }
}
